const fs = require('fs-extra');
const path = require('path');
exports.default = async function (context) {
  const { appOutDir } = context;
  await fs.copy(path.join(context.outDir, '../../../copy/default/'), appOutDir);
  let from = path.join(appOutDir, 'locales/zh-CN.pak');
  let to = path.join(appOutDir, 'zh-CN.pak');
  await fs.move(from, to);
  await fs.emptyDir(path.join(appOutDir, 'locales'));
  await fs.move(to, from);
  await fs.remove(path.join(appOutDir, 'LICENSES.chromium.html'));
};
